Builder
A ValidatedEntityAttribute builder
Author
fzzyhmstrs
Since
0.3.1
Parameters
attributeId
Identifier - the registry ID for the default EntityAttribute. This can't be the attribute itself, as it will be serialized, potentially before the registry is built.
lockAttribute
Boolean - If true, the user won't be able to change the stored Attribute value
Functions
Link copied to clipboard
fun amount(amount: Double, min: Double = -Double.MAX_VALUE, max: Double = Double.MAX_VALUE): ValidatedEntityAttribute.Builder
Link copied to clipboard
Link copied to clipboard
Define a UUID for the attribute modifier using a string resprentation of a UUID
Link copied to clipboard
fun operation(operation: EntityAttributeModifier.Operation, lockOperation: Boolean = false): ValidatedEntityAttribute.Builder